<template>
	<!-- 调用组件 -->
	<div class="play">		
		<play-header></play-header>
		<play-watch :PlayList='PlayList'></play-watch>
	</div>
</template>

<script>
	//引入Header.vue
	import PlayHeader from './pages/Header'
	import PlayWatch from './pages/Watch'
	import axios from 'axios'
	//导出组件 HomeHeader
	export default{
		components:{
			PlayHeader,
			PlayWatch
		},
		data(){
			return{
				"PlayList":[],
			}
		},
		mounted(){
				axios.get('./dataHome.json').then((res)=>{					
					const msg=res.data.data[0];
					this.PlayList=msg.PlayList;
				})	
			}
	}
</script>

<style scoped>

</style>

